11d167c96d736c1a57f5cfc579089ee73802cb58,src/test/java/org/HdrHistogram/HistogramLogReaderWriterTest.java,HistogramLogReaderWriterTest,ycsbLog,#,34
Before Change
readerStream = HistogramLogReaderWriterTest.class.getResourceAsStream("ycsb.hist");
reader = new HistogramLogReader(readerStream);
histogramCount = 0;
while (reader.nextIntervalHistogram(180, 700) != null) {
histogramCount++;
}
Assert.assertEquals(421, histogramCount);
After Change
histogramCount = 0;
totalCount = 0;
accumulatedHistogram.reset();
while ((encodeableHistogram = reader.nextIntervalHistogram(180, 700)) != null) {
histogramCount++;
Histogram histogram = (Histogram) encodeableHistogram;
totalCount += histogram.getTotalCount();
accumulatedHistogram.add(histogram);
}
Assert.assertEquals(421, histogramCount);
Assert.assertEquals(209686, totalCount);